<div class="video-item">
    <div class="video-preview">
        <a href="/video/view/{$data->video_id}" class="more">
        <img src="/images/youtube-video__200x157.png" alt="видео" width="200" height="157" />
        </a>
    </div>
    <div class="video-description">
        <a class="video-title" href="/video/view/{$data->video_id}" class="title">{CHtml::encode($data->title)}</a>
        <p class="date">Дата: {$data->publish_date|date_format:"%e.%m.%Y %H:%M"}</p>
        {assign var="authorVideo" value=VideoFacade::getAuthorUser($data)}
        <p class="author"><a href="{$controller->getUserPageUrl($authorVideo->user_id)}">
            {UserFacade::getFullNameUser($authorVideo->user_id)}</a>
        </p>
        <p class="text">{CHtml::encode($data->description)}</p>
        {if ($isAuthor == true)}
        <a href="/video/delete/{$data->video_id}" class="more">Удалить</a> <a href="/video/update/{$data->video_id}" class="more">Редактировать</a>
        {/if}
        <a href="/video/view/{$data->video_id}" class="more">Посмотреть</a>
    </div>
    <div class="clear-floating"></div>
</div>